package com.chengzzz.mysite.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * (Animation)表实体类
 *
 * @author 等什么柠檬君
 * @since 2020-08-24 14:26:47
 */
@SuppressWarnings("serial")
@ApiModel("番剧实体类")
public class Animation extends Model<Animation> {

    @ApiModelProperty("雪花算法唯一id")
    @TableId(type = IdType.ASSIGN_ID)
    private String aid;

    @ApiModelProperty("番剧简介")
    private String info;

    @ApiModelProperty("番剧名称")
    private String name;

    @ApiModelProperty("番剧状态 连载或者完结")
    private String state;

    @ApiModelProperty("番剧更新时间")
    private String updatetime;

    @ApiModelProperty("番剧现在的级数")
    private String status;

    @ApiModelProperty("番剧来源")
    private String source;

    @ApiModelProperty("番剧链接")
    private String url;

    @ApiModelProperty("记录创建时间")
    private Date gmt_create;

    @ApiModelProperty("记录更新时间")
    private Date gmt_update;

    @ApiModelProperty("记录逻辑删除")
    @TableLogic(value="0",delval="1")
    private int deleted;

    @ApiModelProperty("发布情况")
    private String recent;

    public String getRecent() {
        return recent;
    }

    public void setRecent(String recent) {
        this.recent = recent;
    }

    public int getDeleted() {
        return deleted;
    }

    public void setDeleted(int deleted) {
        this.deleted = deleted;
    }

    public String getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }

    public Date getGmt_create() {
        return gmt_create;
    }

    public void setGmt_create(Date gmt_create) {
        this.gmt_create = gmt_create;
    }

    public Date getGmt_update() {
        return gmt_update;
    }

    public void setGmt_update(Date gmt_update) {
        this.gmt_update = gmt_update;
    }

    public String getAid() {
        return aid;
    }

    public void setAid(String aid) {
        this.aid = aid;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }


    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }



    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.aid;
    }
}